#include "Student.h"

Student::Student() : studentID(""), name("") {}

void Student::inputStudent() {
    cout << "请输入学生的学号: ";
    cin >> studentID;
    cout << "请输入学生的姓名: ";
    cin >> name;
}

string Student::getStudentID() const {
    return studentID;
}

string Student::getName() const {
    return name;
}

void Student::print() const {
    cout << "学生学号: " << studentID << endl;
    cout << "学生姓名: " << name << endl;
}

void Student::save(ofstream& outFile) const {
    outFile << studentID << endl;
    outFile << name << endl;
}
